<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="registerInfoList" checkbox="true" fitColumns="true" title="注册信息" actionUrl="registerInfoController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="是否审核"  field="audit"  hidden="true"   queryMode="single"  width="120"></t:dgCol> 
   <t:dgCol title="申请日期"  field="createDate" formatter="yyyy-MM-dd"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="账号"  field="userId"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="姓名"  field="name"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="手机号"  field="cellphone"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="专业"  field="major"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="性别"  field="sex"   dictionary="sex" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt title="删除" url="registerInfoController.do?doDel&id={id}" />
   <t:dgFunOpt funname="auditOK(id)" title="审核通过"  ></t:dgFunOpt>
   <t:dgToolBar title="编辑" icon="icon-edit" url="registerInfoController.do?goUpdate" funname="update" height="280" width="460"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="registerInfoController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="registerInfoController.do?goUpdate" funname="detail" height="280" width="460"></t:dgToolBar>
  
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/mengtian_tech/device_mgr/register/registerInfoList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 		$("#registerInfoListtb").find("input[name='createDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
 function auditOK(id){ 
	 var url = "registerInfoController.do?goAudit&id="+id;
	 $.dialog({
		  	id:'xxx',
			content: 'url:'+url,
			lock : true,
			zIndex: 1000, 
			width:500,
			height:280,
			title:'注册审核', 
			opacity : 0.3,
			cache:false,
		    ok: function(){
		    	iframe = this.iframe.contentWindow;
		    	$('#btn_sub', iframe.document).click(); 
 				return false;
		    },
		    okVal:'审核通过',
		    cancelVal: '关闭',
		    cancel: true /*为true等价于function(){}*/
		});
 }
 
 </script>